﻿create PROCEDURE Sync.SP_Projects_SelectChanges
@LastRowVersion rowversion,
@FilterdColumn UNIQUEIDENTIFIER
AS 
BEGIN 
	SELECT 
        t.[ProjectID],
		g.[ProjectName],g.[ProfitPercent],g.[ParentID],
		t.IsDeleted,
		t.LastUpdatedDate
	FROM [dbo].[Projects] g RIGHT JOIN Sync.Projects_Tracking t  
    ON t.ProjectID = g.ProjectID 
	WHERE @LastRowVersion IS NULL OR t.Version > @LastRowVersion
    END














